import 'package:wan_android/utils/request.dart';


// 收藏文章
setFav(int id) async {
  var response = await Request().request('/lg/collect/$id/json', method: DioMethod.post);
  return response;
}

// 取消收藏文章
cancelFav(int id) async {
  var response = await Request().request('/lg/uncollect_originId/$id/json', method: DioMethod.post);
  return response;
}

// 查询收藏列表 - 从 0 开始
getFavList(int page) async {
  var response = await Request().request('/lg/collect/list/$page/json');
  return response;
}